package com.jichangxiu.server.platform.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("platform_dept_role")
@Accessors(chain = true)
@Schema(description = "部门角色关联实体")
public class PlatformDeptRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("dept_id")
    @Schema(description = "部门ID")
    private String deptId;

    @TableField("role_id")
    @Schema(description = "角色ID")
    private String roleId;

    @TableField("tenant_id")
    @Schema(description = "租户ID")
    private String tenantId;

    @TableLogic
    @TableField("deleted")
    @Schema(description = "是否删除（0否 1是）")
    private String deleted;

}
